<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
	<head>
	<link rel="icon" href="resources/img/favicon.png" type="image/x-icon" />
		<script src="resources/frontResources/bootstrap-3.0.2/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="resources/frontResources/bootstrap-3.0.2/css/jumbotron.css">
		<link rel="stylesheet" href="resources/frontResources/bootstrap-3.0.2/css/bootstrap.min.css">
		<script src="resources/frontResources/jquery/js/jquery-1.9.1.js"></script>
		<script src="resources\frontResources\Json\json2.js"></script>
		<script src="http://openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
		<script src="http://openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
		<script src="resources/js/componentesForm.js" type="text/javascript"></script>
	</head>
		<script type="text/javascript">
			$( document ).ready(function() {
			    var listItemFormAux = $("#dinamicInputNameHidden").val();
			    var listItemForm = jQuery.parseJSON(listItemFormAux);
			    formDinamico = " ";
			    for (var i=0; i < listItemForm.length; i++){
			        var item = listItemForm[i];
			        formDinamico = formDinamico+getRowWithComponent(item.nombre_campo,item.tipo_campo);
			    }
			    $("#contenedor").html(formDinamico);
			    $("#contenedor").show();
			});
		</script>	
<body>
<jsp:include page="../reutilizables/barraSuperior.jsp" flush="true"/>
<br>
<div class="container">
	<ol class="breadcrumb">
	  <li><a href="${ctx}/projecDetail.htm">Panel de Control</a></li>
	  <li class="active">Proyecto:<span style="font-weight: bold; color: black;">${projectName}</span></li>
	</ol>
	<c:set var="ctx" value="${pageContext.request.contextPath}" />

		<div class="alert alert-success" class="form-group">
			<b>La capa ha sido creada corectamente.<b>
		</div>
		
		<!-- Botonera ppal -->
		<div class="form-group">
		    	<div style="text-align: center;">
		      		<button type="button" class="btn btn-warning" onclick="window.location = '<%=request.getContextPath()%>/projecDetail.htm'">Aceptar</button>
		    	</div>
		</div>

</div>	

</body>
</html>